#include "delay.h"
#include "printf.h"
#include <stdbool.h>
#include <stdio.h>
#include <stm32f10x.h>

void SysTick_init() {

    // enable interrupt
    SysTick->CTRL |= 2;
}

void SysTick_Handler() { printf("SysTick run\r\n"); }

int main() {

    printf_init(9600);
    delay_init();
	SysTick_init();

    while (true) {

        printf("main running\r\n");
        delay_s(3);
    }

    return 0;
}
